{{#extends @popup.html}}

{{:title}}
    {{community.title}}
{{/:title}}

{{:init}}
    {{!connect "master.css" media="all" charset="utf-8"}}
    {{!connect "content.css" media="all" charset="utf-8"}}
    {{!connect "screen/community-head.css" media="screen" charset="utf-8"}}
    {{!connect "screen/portal.css" media="screen" charset="utf-8"}}
    {{!connect "screen/footer.css" media="screen" charset="utf-8"}}
    {{!connect "screen/layout-standard.css" media="screen" charset="utf-8"}}
    {{!connect "screen/content-cindex.css" media="screen" charset="utf-8"}}
    {{!connect "screen/widgets-default.css" media="screen" charset="utf-8"}}
    {{!connect "tinymce/tiny_mce_src.js"}}
	{{!connect "tiny_mce_start.js"}}
	{{!connect "screen/quest/quest.css"}}
	{{!connect "screen/quest/votes.css"}}

    {{!connect "screen/content-posts.css" media="screen" charset="utf-8"}}
	{{!connect "screen/content-posts-comments.css" media="screen" charset="utf-8"}}
	{{!connect "screen/widgets-default.css" media="screen" charset="utf-8"}}

    {{!connect "jquery.js"}}
    {{!connect "cpaint2.inc.js"}}
    {{!connect "misc.js"}}

	{{!connect "treecomments/CommentsContainerView.js"}}
	{{!connect "treecomments/commentscontainer.js"}}
	{{!connect "treecomments/CommentView.js"}}
	{{!connect "treecomments/comment.js"}}
	{{!connect "treecomments/CommentSubmitView.js"}}
	{{!connect "treecomments/commentsubmit.js"}}
	{{!connect "treecomments/CommentsControlView.js"}}
	{{!connect "treecomments/commentscontrol.js"}}
	{{!connect "treecomments/CommentsLoaderView.js"}}
	{{!connect "treecomments/commentsloader.js"}}
	{{!connect "treecomments/commentsloadercontrol.js"}}
	{{!connect "treecomments.js"}}

	{{!connect "feed.js"}}

    {{!connect "screen/content-quest.css" media="screen" charset="utf-8"}}

    {{!connect "jplugins/jtemplates.js"}}
    <!-- {{!connect "jplugins/interface.js"}} -->
    {{!connect "jplugins/interface/idrag.js"}}
    {{!connect "jplugins/interface/idrop.js"}}
    {{!connect "jplugins/interface/iutil.js"}}
    {{!connect "jplugins/interface/isortables.js"}}

    {{!connect "jplugins/custom.js"}}
    {{!connect "quest/doc.js"}}
    {{!connect "quest/show.js"}}

    <!-- RSS записей сообщества -->
    {{@:connect_rss url=@:rss_url title=@:rss_title}}
    {{:rss_title}}Все записи сообщества{{/:rss_title}}
    {{:rss_url}}{{/}}{{community.url}}/feed.xml{{/:rss_url}}

    <!-- RSS комментов сообщества -->
    {{@:connect_rss url=@:rss_comments_url title="Все комментарии сообщества"}}
    {{:rss_comments_url}}{{/}}{{community.url}}/comments.xml{{/:rss_comments_url}}

<script type="text/javascript">
    var treecomments_load_url = '{{feed_url}}/ajax';
</script>
{{/:init}}


{{:settings_button}}
{{?livepage}}
     <li class="moderator-" id="mod-interface"><a>Включить режим модератора</a></li>
        <!-- HACK : 2008-02-11 : lucky #375 -->
        <!-- подключаем TinyMCE тут для виджетов,
        т.к. вижет не может сделать это при помощи ajax -->
        {{!connect "tinymce/tiny_mce_src.js"}}
        {{!connect "tiny_mce_start.js"}} <!-- Constructs TinyMCE default config and tinyMCE.init(config) -->
        <!-- подключаем скрипт для виджета CmsMenu -->
        {{!connect "widgets/cms_menu.js"}}
        <!-- подключаем скрипт для виджета HotDocument -->
        {{!connect "widgets/hot_doc.js"}}
{{/?}}
{{/:settings_button}}


{{:body}}

    {{?is_new!=1}}
{{@html/widgets/widget.html:background}}
<div class="popup-widgets" id="voting_form" style="display: none;"></div>
	{{/?}}

    <!-- content zone -->
    <!-- Вот тут класс widgetcolumn это колонка в которой будет drag, а класс widget это итем которые таскается -->
    <div class="content-cindex layout-standard">
        <div class="layout-c-left widgetcolumn wg-droppable" id="column0">
            {{@html/widgets/widget.html:addwidget_button}}
            {{column0}}
        </div>
        <div class="layout-c-right widgetcolumn wg-droppable" id="column2">
            {{column2}}
        </div>
        <div class="layout-c-main">
            {{@:realbody}}
        </div>
    </div>
{{/:body}}

{{:realbody}}
<h1 style="font-size: 1.5em; align: center;">Модерирование квеста</h1>
Финалисты:<br>
{{@:docs_lists ds=final type='final'}}
Бан:<br>
{{@:docs_lists ds=ban type='ban'}}
{{/:realbody}}

{{:docs_lists}}
<form method="post">
<input type="hidden" name="update" value="{{type}}">
<table><tr>
<td>
    <select name="a_list[]" multiple size="10">
    {{!for ds.a do=@:u_option}}
    </select>
</td>
<td>
    <input type="submit" value="<-->">
</td>
<td>
    <select name="n_list[]" multiple size="10">
    {{!for ds.n do=@:u_option}}
    </select>
</td>
</tr></table>
</form>
{{/:docs_lists}}

{{:u_option}}
<option value="{{*oid}}">{{*title}}</option>
{{/:u_option}}
